package GameWorld;

import javax.swing.*;

public class Mine extends SeaObject{

    public Mine(int x,int y){
        super(11,11,x,y,1);
    }
    public void  move(){
        y-=speed;
    }
    public ImageIcon getImage(){
        return  Images.mine;
    }
    public boolean isOutofBounds(){
        return this.y <= 150-World.HEIGHT;//炸弹的y<=天空的y炸弹的高   即为越界
    }
}
